package sh.wnxy.wn38.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import sh.wnxy.wn38.entity.Order;
import sh.wnxy.wn38.mapper.OrderMapper;
import sh.wnxy.wn38.service.IOrderService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;


/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wn38
 * @since 2021-07-15
 */
@Service
public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements IOrderService {
   @Autowired
    OrderMapper orderMapper;
    @Override
    public List<Order> listuid(String uid) {
        List<Order> orders = orderMapper.listByuid(uid);
        return orders;
    }

    @Override
    public String selectUid(String orderid) {
        return orderMapper.selectuid(orderid);
    }
}
